<ui:composition template="/WEB-INF/templates/main-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<ui:define name="sidebar">
		<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
		<h:form id="moduleForm">
			<p:focus for="moduleName"/>
			<p:growl />
			<h:outputText value="New Module" styleClass="outputTextTitle" />
			<h:panelGrid columns="3">
				<h:outputLabel value="#{msg['modulename.label']}" />
				<h:outputLabel value=" : " />

				<p:inputText id="moduleName" value="#{createModuleBean.module.moduleName}" />

				<h:outputLabel value="#{msg['dispalyorder.label']} " />
				<h:outputLabel value=" : " />
				<p:inputText id="displayOrder" value="#{createModuleBean.module.displayOrder}" />
				<h:outputLabel value="#{msg['description.label']} " />
				<h:outputLabel value=" : " />
				<p:inputTextarea value="#{createModuleBean.module.description}" />
				<h:inputHidden />
				<h:inputHidden />
				<p:commandButton value="Save Module"
					actionListener="#{createModuleBean.saveModule}" ajax="false" />
			</h:panelGrid>

		</h:form>
	</ui:define>
</ui:composition>